# 判断条件、
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException, NoSuchElementException


driver = webdriver.Chrome()
driver.get('https://beta-actest.wesais.cn/#/login')
try:
    driver.get('https://beta-actest.wesais.cn/#/login')
except Exception:
    print("null")
try:
    driver.find_element("演示公司")
except Exception:
    print("no element")
#截图
driver.save_screenshot('/Users/Administrator/Pictures/Saved Pictures/截图01.png')

# driver = webdriver.Chrome('C:/Users/Administrator/PycharmProjects/pythonProject/testUI/data')
# driver.fullscreen_window()
# driver.get('https://www.baidu.com/')
#
# driver.save_screenshot('截图.png')
#
# driver.close()
